package com.joven.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.joven.core.constant.enums.Yon;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author joven_wong
 * 2021/6/10 10:05
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Person implements Serializable {

    private static final long serialVersionUID = 5735119375488489197L;

    @TableId(type = IdType.AUTO) //主键自增 数据库中需要设置主键自增
    private Long id;

    private String name;
    private int age;
    private Yon isActive;
}
